package fr.afcepf.atod16.groupe1.projet1.dto.util;

import java.util.Date;

/**
 * Le DTO produit vignette
 * @author cedric
 */
public class DtoProduitVignette {

    private Integer id;
    private String nom;
    private Integer stock;
    private Integer prix;
    private Integer remisePromo;
    private Date dateFinPromo;
    private String resume;
    private String vignette;

    public DtoProduitVignette() {
    }

    public DtoProduitVignette(Integer id, String nom, Integer stock, Integer prix, Integer remisePromo, Date dateFinPromo, String resume, String vignette) {
        this.id = id;
        this.nom = nom;
        this.stock = stock;
        this.prix = prix;
        this.remisePromo = remisePromo;
        this.dateFinPromo = dateFinPromo;
        this.resume = resume;
        this.vignette = vignette;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getPrix() {
        return prix;
    }

    public void setPrix(Integer prix) {
        this.prix = prix;
    }

    public Integer getRemisePromo() {
        return remisePromo;
    }

    public void setRemisePromo(Integer remisePromo) {
        this.remisePromo = remisePromo;
    }

    public Date getDateFinPromo() {
        return dateFinPromo;
    }

    public void setDateFinPromo(Date dateFinPromo) {
        this.dateFinPromo = dateFinPromo;
    }

    public String getResume() {
        return resume;
    }

    public void setResume(String resume) {
        this.resume = resume;
    }

    public String getVignette() {
        return vignette;
    }

    public void setVignette(String vignette) {
        this.vignette = vignette;
    }

    @Override
    public String toString() {
        return "DtoProduitVignette{" + "id=" + id + ", nom=" + nom + ", stock=" + stock + ", prix=" + prix + ", remisePromo=" + remisePromo + ", dateFinPromo=" + dateFinPromo + ", resume=" + resume + ", vignette=" + vignette + '}';
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 59 * hash + (this.id != null ? this.id.hashCode() : 0);
        hash = 59 * hash + (this.nom != null ? this.nom.hashCode() : 0);
        hash = 59 * hash + (this.stock != null ? this.stock.hashCode() : 0);
        hash = 59 * hash + (this.prix != null ? this.prix.hashCode() : 0);
        hash = 59 * hash + (this.remisePromo != null ? this.remisePromo.hashCode() : 0);
        hash = 59 * hash + (this.dateFinPromo != null ? this.dateFinPromo.hashCode() : 0);
        hash = 59 * hash + (this.resume != null ? this.resume.hashCode() : 0);
        hash = 59 * hash + (this.vignette != null ? this.vignette.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final DtoProduitVignette other = (DtoProduitVignette) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        if ((this.nom == null) ? (other.nom != null) : !this.nom.equals(other.nom)) {
            return false;
        }
        if (this.stock != other.stock && (this.stock == null || !this.stock.equals(other.stock))) {
            return false;
        }
        if (this.prix != other.prix && (this.prix == null || !this.prix.equals(other.prix))) {
            return false;
        }
        if (this.remisePromo != other.remisePromo && (this.remisePromo == null || !this.remisePromo.equals(other.remisePromo))) {
            return false;
        }
        if (this.dateFinPromo != other.dateFinPromo && (this.dateFinPromo == null || !this.dateFinPromo.equals(other.dateFinPromo))) {
            return false;
        }
        if ((this.resume == null) ? (other.resume != null) : !this.resume.equals(other.resume)) {
            return false;
        }
        if ((this.vignette == null) ? (other.vignette != null) : !this.vignette.equals(other.vignette)) {
            return false;
        }
        return true;
    }
    
    
}
